package com.lecyon.farm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 对象存储配置信息
 *
 * @author YaoZheng
 * @since 2020-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("对象存储配置信息")
public class ObjectStoresConfig extends Model<ObjectStoresConfig> {

    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty(name = "id", value = "ID")
    private Long id;

    @ApiModelProperty(name = "operators", value = "运营商")
    private String operators;

    @ApiModelProperty(name = "end_point", value = "节点")
    private String endPoint;

    @ApiModelProperty(name = "access_key_id", value = "访问密钥Id")
    private String accessKeyId;

    @ApiModelProperty(name = "access_key_secret", value = "秘密访问密钥")
    private String accessKeySecret;

    @ApiModelProperty(name = "bucket_name", value = "桶名称")
    private String bucketName;

    @ApiModelProperty(name = "key_word", value = "关键词")
    private String keyWord;

    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    @ApiModelProperty(name = "del_flag", value = "删除标记")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private String delFlag;

    @TableField(exist = false)
    private String userToken;

}
